<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<link rel="stylesheet" href="css/jquery.wysiwyg.css" type="text/css" />

<link rel="stylesheet" href="examples.css" type="text/css" />

<script type="text/javascript" src="jquery/jquery-1.3.2.js"></script>

<script type="text/javascript" src="jquery/jquery.wysiwyg.js"></script>

<script type="text/javascript">

$(function()

{

$('#wysiwyg').wysiwyg();

});

</script>


<script src="js/jquery.js"></script>
<script>
	$(document).ready(
			function() {

				$("#add_to_textarea").click(
						function() {
							$("#individual_students").append(
									$('input:text[name=selected_student]')
											.val()
											+ ";");

						});

				$("#s1").click(function() {

					var path = $("#f1").val().split("\\");
					//alert(path);
					$("#file_name").val(path[path.length - 1]);

				});

			}

	);
</script>

<style type="text/css">
#send {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
}

a{
	text-decoration:none 
}
a:LINK {
	color: #009ACD;
	
}

a:VISITED {
	color: #009ACD;
	
}
a:ACTIVE {
	color: black;
}

a:HOVER {
	color: red;
}
</style>
</head>
<body>
<font color="grey" style="font-family: calibri; font-size: medium;"><b>Reply message</b> </font>
<div><hr></div>
<div>
	<form action="sendmessage_batch.action" method="post"
		enctype="multipart/form-data">
		<input type="hidden" id="file_name" name="file_name" />
		<table align="center">
						<tr>
				<td width="80" valign="top" align="right"><font
					style="font-family: arial; font-size: small;">To</font></td>
				<td><input style="font-family: calibri; font-size: small; color: #0658B0;" type="text" name="individual_students_emails" id="individual_students" size="62"
					/></td>

			</tr>
			
			<tr>
				<td width="80" valign="top" align="right"><font
					style="font-family: arial; font-size: small;">Subject</font></td>
				<td style=""><input style="font-family: calibri; font-size: small;" type="text" required="true" name="subject" value="FW: <s:property value="#session['subject']"/>"
					size="62" /></td>
			</tr>
			<!-- 
			<tr><td align="left" colspan="2">
<font color="gray" style="font-family: calibri; font-size: small;"><b>Attachments &emsp;</b></font> <font color="gray" style="font-family: calibri; font-size: small;"><s:iterator value="#session['attachments']"><a href="Download.jsp?attachment_id=<s:property value="attachment_id"/>&filename=<s:property/>"><s:property /></a></s:iterator>&ensp;</font>
</td></tr>
 -->
			<tr>
				<td width="80" valign="top" align="right"><font
					style="font-family: arial; font-size: small;">Body</font></td>
				<td><textarea rows="25" cols="55" name="wysiwyg" required="true" id="wysiwyg"><s:property value="#session['body']"/>
</textarea></td>

			</tr>
			<tr>
				<td width="80" valign="top" align="right"><font
					style="font-family: arial; font-size: small;"> Attach a
						File</font></td>
				<td><input type="file" id="f1" name="attached_file" size="60"/></td>
			</tr>
			<tr><td colspan="2"></td></tr>
			<tr>
				<td id="send" height="65" style="background-color: gray;" colspan="2" align="center" valign="middle"><input type="submit" id="s1"
					value="Send the Mail" /></td>
			</tr>
		</table>




	</form>
	</div>
</body>
</html>